<script setup>
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'
defineOptions({
  name: 'HomeCarousel'
})
</script>

<template>
  <div class="carousel slide" id="carou" data-ride="carousel">
    <div class="carousel-inner">
      <div class="carousel-item active">
        <img src="@/assets/img/banner1.png" class="img-fluid" alt="" />
      </div>
      <div class="carousel-item">
        <img src="@/assets/img/banner2.png" class="img-fluid" alt="" />
      </div>
      <div class="carousel-item">
        <img src="@/assets/img/banner3.png" class="img-fluid" alt="" />
      </div>
    </div>
    <ul class="carousel-indicators">
      <li data-target="#carou" data-slide-to="0" class="active mx-3"></li>
      <li data-target="#carou" class="mx-3" data-slide-to="1"></li>
      <li data-target="#carou" class="mx-3" data-slide-to="2"></li>
    </ul>
    <a
      class="carousel-control-prev"
      @click.prevent
      href="#carou"
      data-slide="prev"
    >
      <span class="carousel-control-prev-icon"></span>
    </a>
    <a
      class="carousel-control-next"
      @click.prevent
      href="#carou"
      data-slide="next"
    >
      <span class="carousel-control-next-icon"></span>
    </a>
  </div>
</template>

<style lang="scss" scoped>
.carousel-indicators {
  li {
    font-size: 30px;
    cursor: pointer;
  }

  li:not(.active) {
    color: black;
  }

  li.active {
    color: white;
  }
}
</style>
